
//
//  NSObject+Extension.swift
//  ExtensionClass
//
//  Created by tkgz on 16/5/23.
//  Copyright © 2016年 tao.520it. All rights reserved.
//

import UIKit

extension NSObject {
    
    /// 返回类名
    class var className: String {
        return NSStringFromClass(self.classForCoder()).componentsSeparatedByString(".").last!
    }
    
    /// 返回命名空间
    class var nameSpace: String {
        return NSStringFromClass(self.classForCoder()).componentsSeparatedByString(".").first!
    }
}
